package cn.op.portal.category.dao;

import java.util.List;

import org.springframework.jdbc.core.simple.ParameterizedBeanPropertyRowMapper;
import org.springframework.stereotype.Repository;

import cn.op.portal.category.domain.Category;
import cn.op.portal.common.dao.impl.BaseDaoImpl;

@Repository
public class CategoryDao extends BaseDaoImpl<Category> {

	public List<Category> getAll(String sql) {
		List<Category> list = jdbcTemplate.query(sql, ParameterizedBeanPropertyRowMapper.newInstance(Category.class));
		return list;
	}
	
}
